// main_init function main_init = function(mc){ } // main_effect function main_effect = function(mc,frame){ if (subs_done) end_effect = true; } // sub_init function sub_init = function(mc){ if (!out_effect) mc._x = mc._y = mc._xscale = mc._yscale = 0; } // sub_effect function sub_effect = function(mc,frame){ perc = frame / lastsubframe; if (out_effect) perc = 1 - perc; mc._xscale = mc._yscale = perc * 100; mc._x = mc.__x * Math.sin(perc * deg90); mc._y = mc.__y * Math.sin(perc * deg90); if (frame == lastsubframe) mc.done=true; }